.class Lcom/melesta/engine/EngineActivity$9;
.super Ljava/lang/Object;
.source "EngineActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/EngineActivity;->showMessageEx(Ljava/lang/String;Landroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnCancelListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/melesta/engine/EngineActivity;

.field final synthetic val$msg:Ljava/lang/String;

.field final synthetic val$onCancel:Landroid/content/DialogInterface$OnCancelListener;

.field final synthetic val$onNo:Landroid/content/DialogInterface$OnClickListener;

.field final synthetic val$onOk:Landroid/content/DialogInterface$OnClickListener;


# direct methods
.method constructor <init>(Lcom/melesta/engine/EngineActivity;Ljava/lang/String;Landroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnCancelListener;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1519
    iput-object p1, p0, Lcom/melesta/engine/EngineActivity$9;->this$0:Lcom/melesta/engine/EngineActivity;

    iput-object p2, p0, Lcom/melesta/engine/EngineActivity$9;->val$msg:Ljava/lang/String;

    iput-object p3, p0, Lcom/melesta/engine/EngineActivity$9;->val$onOk:Landroid/content/DialogInterface$OnClickListener;

    iput-object p4, p0, Lcom/melesta/engine/EngineActivity$9;->val$onNo:Landroid/content/DialogInterface$OnClickListener;

    iput-object p5, p0, Lcom/melesta/engine/EngineActivity$9;->val$onCancel:Landroid/content/DialogInterface$OnCancelListener;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    .line 1522
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->this$0:Lcom/melesta/engine/EngineActivity;

    invoke-virtual {v2}, Lcom/melesta/engine/EngineActivity;->isFinishing()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 1535
    :goto_0
    return-void

    .line 1525
    :cond_0
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->this$0:Lcom/melesta/engine/EngineActivity;

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1526
    .local v1, builder:Landroid/app/AlertDialog$Builder;
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->this$0:Lcom/melesta/engine/EngineActivity;

    sget v3, Lcom/melesta/engine/R$string;->app_name:I

    invoke-virtual {v2, v3}, Lcom/melesta/engine/EngineActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    iget-object v3, p0, Lcom/melesta/engine/EngineActivity$9;->val$msg:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1527
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->val$onOk:Landroid/content/DialogInterface$OnClickListener;

    if-eqz v2, :cond_1

    .line 1528
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->this$0:Lcom/melesta/engine/EngineActivity;

    invoke-virtual {v2}, Lcom/melesta/engine/EngineActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/melesta/engine/R$string;->OK:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/melesta/engine/EngineActivity$9;->val$onOk:Landroid/content/DialogInterface$OnClickListener;

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1529
    :cond_1
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->val$onNo:Landroid/content/DialogInterface$OnClickListener;

    if-eqz v2, :cond_2

    .line 1530
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->this$0:Lcom/melesta/engine/EngineActivity;

    invoke-virtual {v2}, Lcom/melesta/engine/EngineActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/melesta/engine/R$string;->cancel:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/melesta/engine/EngineActivity$9;->val$onNo:Landroid/content/DialogInterface$OnClickListener;

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1531
    :cond_2
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->val$onCancel:Landroid/content/DialogInterface$OnCancelListener;

    if-eqz v2, :cond_3

    .line 1532
    iget-object v2, p0, Lcom/melesta/engine/EngineActivity$9;->val$onCancel:Landroid/content/DialogInterface$OnCancelListener;

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    .line 1533
    :cond_3
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 1534
    .local v0, ad:Landroid/app/AlertDialog;
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    goto :goto_0
.end method
